import Vue from 'vue'
import Router from 'vue-router'
import SelfConfig from '@/components/user/SelfConfig'
import SecureConf from '@/components/user/SecureConf'
import UserMain from '@/components/user/UserMain'
import Tenant from '@/components/tenant/Tenant'
import OrgMain from '@/components/org/OrgMain'
import Role from '@/components/role/Role'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/user/self',
      name: 'SelfConfig',
      component: SelfConfig,
    },
    {
      path: '/user/secure',
      name: 'SecureConf',
      component: SecureConf,
    },
    {
      path: '/tenant',
      name: 'Tenant',
      component: Tenant,
    },
    {
      path: '/org',
      name: 'OrgMain',
      component: OrgMain,
    },
    {
      path: '/user',
      name: 'UserMain',
      component: UserMain,
    },
    {
      path: '/role',
      name: 'Role',
      component: Role,
    },
  ]
})
